package com.ktgj.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.service.mapper.ViphallCommentReplyMapper;
import com.ktgj.service.domain.ViphallCommentReply;
import com.ktgj.service.service.IViphallCommentReplyService;

/**
 * 贵宾厅评论回复Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-11-22
 */
@Service
public class ViphallCommentReplyServiceImpl implements IViphallCommentReplyService 
{
    @Autowired
    private ViphallCommentReplyMapper viphallCommentReplyMapper;

    /**
     * 查询贵宾厅评论回复
     * 
     * @param commentReplyId 贵宾厅评论回复ID
     * @return 贵宾厅评论回复
     */
    @Override
    public ViphallCommentReply selectViphallCommentReplyById(Long commentReplyId)
    {
        return viphallCommentReplyMapper.selectViphallCommentReplyById(commentReplyId);
    }

    /**
     * 查询贵宾厅评论回复列表
     * 
     * @param viphallCommentReply 贵宾厅评论回复
     * @return 贵宾厅评论回复
     */
    @Override
    public List<ViphallCommentReply> selectViphallCommentReplyList(ViphallCommentReply viphallCommentReply)
    {
        return viphallCommentReplyMapper.selectViphallCommentReplyList(viphallCommentReply);
    }

    /**
     * 新增贵宾厅评论回复
     * 
     * @param viphallCommentReply 贵宾厅评论回复
     * @return 结果
     */
    @Override
    public int insertViphallCommentReply(ViphallCommentReply viphallCommentReply)
    {
        return viphallCommentReplyMapper.insertViphallCommentReply(viphallCommentReply);
    }

    /**
     * 修改贵宾厅评论回复
     * 
     * @param viphallCommentReply 贵宾厅评论回复
     * @return 结果
     */
    @Override
    public int updateViphallCommentReply(ViphallCommentReply viphallCommentReply)
    {
        return viphallCommentReplyMapper.updateViphallCommentReply(viphallCommentReply);
    }

    /**
     * 批量删除贵宾厅评论回复
     * 
     * @param commentReplyIds 需要删除的贵宾厅评论回复ID
     * @return 结果
     */
    @Override
    public int deleteViphallCommentReplyByIds(Long[] commentReplyIds)
    {
        return viphallCommentReplyMapper.deleteViphallCommentReplyByIds(commentReplyIds);
    }

    /**
     * 删除贵宾厅评论回复信息
     * 
     * @param commentReplyId 贵宾厅评论回复ID
     * @return 结果
     */
    @Override
    public int deleteViphallCommentReplyById(Long commentReplyId)
    {
        return viphallCommentReplyMapper.deleteViphallCommentReplyById(commentReplyId);
    }
}
